<div class="row m-n">
    <div tabset type="tab">
        <div tab heading="服务单" active="activeFlag[0]" ng-if="!pageDisabled" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                        ng-disabled="!btnPermission.REPAIRFORM_ADD"
                        title="{{!btnPermission.REPAIRFORM_ADD?'无权限执行此操作':''}}">新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i><span>导出</span> 
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i><span>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="整车编码" ng-model="condition.engineNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">单号：</label>
                        <input type="text" ng-model="condition.codeLike" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">整车编码：</label>
                        <input type="text" ng-model="condition.engineNo" class="form-control">
                    </div>
                    <div class="form-group clearfix" ng-if="tejiFuture">
                        <label class="control-label">车牌号：</label>
                        <input type="text" ng-model="condition.licensePlateNumber" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>状态</span>：</label>
                        <select class="form-control" ng-model="condition.status">
                            <option value="">请选择</option>
                            <option value='0'>作废</option>
                            <option value='1'>提交待分单</option>
                            <option value='10'>已分单待派工</option>
                            <option value='20'>已派工待接单</option>
                            <option value='30'>已接单待维修</option>
                            <option value='35'>完工暂存</option>
                            <option value='40'>已完工</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">用户名/手机：</label>
                        <input type="text" ng-model="condition.customerNameOrContactLike" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>来源</span>：</label>
                        <select class="form-control" ng-model="condition.channel">
                            <option value="">请选择</option>
                            <!-- <option value='1'>400录入</option> -->
                            <option value='2'>营销部录入</option>
                            <option value='3'>服务站录入</option>
                            <!-- <option value='4'>客户小程序录入</option> -->
                        </select>
                    </div>
                    <!-- <div class="form-group clearfix">
                        <label class="control-label"><span>传输erp状态</span>：</label>
                        <select class="form-control" ng-model="condition.crmStatus">
                            <option value="">请选择</option>
                            <option value='0'>未传输</option>
                            <option value='1'>已传输</option>
                        </select>
                    </div> -->
                    <div class="form-group clearfix">
                        <label class="control-label"><span>服务单类型</span>：</label>
                        <select class="form-control" ng-model="condition.serviceType"
                            ng-options="item.serviceType as item.serviceTypeDesc for item in serviceTypeList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>一级服务站</span>：</label>
                        <input type="text" ng-model="condition.level1ServiceStation" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.completeAuditFlowStatus">
                            <option value="">请选择</option>
                            <option value='0'>未开始</option>
                            <option value='1'>提交一级审核</option>
                            <option value='2'>一级审核拒绝</option>
                            <option value='3'>一级审核通过</option>
                            <option value='4'>二级审核拒绝</option>
                            <option value='5'>二级审核通过</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>审核日期</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.completeAuditFinishTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showAuditDateEnd=false;showAuditDateStart=!showAuditDateStart"
                            ng-change="checkDate(condition, 'completeAuditFinishTimeStart', 'completeAuditFinishTimeEnd')"
                            is-open="showAuditDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.completeAuditFinishTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showAuditDateStart=false;showAuditDateEnd=!showAuditDateEnd"
                            ng-change="checkDate(condition, 'completeAuditFinishTimeStart', 'completeAuditFinishTimeEnd')"
                            is-open="showAuditDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>

                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>创建日期</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createdTimeStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showCreatedDateEnd=false;showCreatedDateStart=!showCreatedDateStart"
                            ng-change="checkDate(condition, 'createdTimeStart', 'createdTimeEnd')"
                            is-open="showCreatedDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createdTimeEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showCreatedDateStart=false;showCreatedDateEnd=!showCreatedDateEnd"
                            ng-change="checkDate(condition, 'createdTimeStart', 'createdTimeEnd')"
                            is-open="showCreatedDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectAll()"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item)"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_EDIT||item.status==0||((!isYingXiao && item.completeAuditFlowStatus>=3))"
                                                title="{{!btnPermission.REPAIRFORM_EDIT?'无权限执行此操作':''}}"
                                                ng-click="editData(item)">编辑</button>

                                            <!-- <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_TRANSFER||item.status!=1"
                                                title="{{!btnPermission.REPAIRFORM_TRANSFER?'无权限执行此操作':''}}"
                                                ng-click="transferMarketingCenter(item)">转移营销部</button> -->

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_DISTRIBUTE||!(item.status==1||item.status==10)||isFWZ2||(isYingXiao&&!!item.level1ServiceStation)||(isFWZ1&&!!item.level2ServiceStation)"
                                                title="{{!btnPermission.REPAIRFORM_DISTRIBUTE?'无权限执行此操作':''}}"
                                                ng-click="distributeOrder(item)">分单</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_RETURN_DISTRIBUTE||item.status!=10||item.channel==3"
                                                title="{{!btnPermission.REPAIRFORM_RETURN_DISTRIBUTE?'无权限执行此操作':''}}"
                                                ng-click="unDistributeOrder(item.id)">返分单</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_DISPATCH||item.status!=10||isYingXiao||(isFWZ1&&!!item.level2ServiceStation)"
                                                title="{{!btnPermission.REPAIRFORM_DISPATCH?'无权限执行此操作':''}}"
                                                ng-click="dispatchWorkers(item)">派工</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_RETURN_DISPATCH||item.status!=20 || isYingXiao"
                                                title="{{!btnPermission.REPAIRFORM_RETURN_DISPATCH?'无权限执行此操作':''}}"
                                                ng-click="unDispatchWorkers(item.id)">撤回</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_DISABLE"
                                                title="{{!btnPermission.REPAIRFORM_DISABLE?'无权限执行此操作':''}}"
                                                ng-click="disableData(item.id)">作废</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_DELETE||item.status!=0"
                                                title="{{!btnPermission.REPAIRFORM_DELETE?'无权限执行此操作':''}}"
                                                ng-click="delData('single', item.id)">删除</button>

                                            <!-- <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_SYNC_ERP||item.status!=40||item.crmStatus==1"
                                                title="{{!btnPermission.REPAIRFORM_SYNC_ERP?'无权限执行此操作':''}}"
                                                ng-click="syncErp(item)">传输erp</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_UPDATE_AFTER_FINISH||item.status!=40||item.crmStatus==1"
                                                title="{{!btnPermission.REPAIRFORM_UPDATE_AFTER_FINISH?'无权限执行此操作':''}}"
                                                ng-click="makeupAfterFinish(item.id)">完工补录</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-disabled="!btnPermission.REPAIRFORM_EDIT||item.crmStatus!=1"
                                                title="{{!btnPermission.REPAIRFORM_EDIT?'无权限执行此操作':''}}"
                                                ng-click="editEngine(item)">修改整车编码</button> -->

                                            <button class="btn btn-operate m-r-xs"
                                                ng-if="isYingXiao"
                                                ng-disabled="!btnPermission.REPAIRFORM_AUDIT||item.status!=40||item.completeAuditFlowNode!='tejiorg'"
                                                title="{{!btnPermission.REPAIRFORM_AUDIT?'无权限执行此操作':''}}"
                                                ng-click="auditData(item.id)">审核</button>

                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="getItemLogs(item.id)">操作记录</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <span ng-if="!itemCol.clickFn" title="{{item[itemCol.dataField]}}">{{item[itemCol.dataField]}}</span>
                                        <div ng-if="!!itemCol.clickFn" ng-switch="itemCol.clickFn">
                                            <div ng-switch-when="viewDetail">
                                                <a class="btn-operate m-r-xs" ng-click="viewDetail(item.id)">{{item[itemCol.dataField]}}</a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选" yb-click="selectAll()"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="新增" active="activeFlag[1]" ng-if="activeFlag[1]">
            <form name="form" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span>服务单类型</span>：</label>
                    <label class="col-xs-5 wrapper-none">
                        <select class="form-control" ng-model="detailInfo.serviceType" name="serviceType" required
                            ng-options="item.serviceType as item.serviceTypeDesc for item in serviceTypeList">
                            <option value="">请选择</option>
                        </select>
                    </label>
                    <div class="col-xs-4 msg-block" ng-show="form.serviceType.$dirty || (form.serviceType.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.serviceType.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span>整车编码</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div yb-form-clear name="engineNo" ng-model="detailInfo.engineNo" title="detailInfo.engineNo" hide-clear="true"
                            select-obj="selectEngineNo()" tips-name="整车编码" required></div>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.engineNo.$dirty || (form.engineNo.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.engineNo.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group" ng-if="is400">
                    <label class="col-xs-2 control-label">来电号码：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.callerNum || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>联系方式：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="contact" class="form-control" ng-model="detailInfo.contact"
                            required yb-focus yb-mobile maxlength="11">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.contact.$dirty || (form.contact.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.contact.$error.required && !form.contact.focused">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                        <div class="error-msg" ng-show="form.contact.$error.mobile && !form.contact.focused">
                            <i class="yb-icon ico-times-circular"></i><span>联系方式格式错误</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>联系人：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" name="customerName" class="form-control" ng-model="detailInfo.customerName" required yb-focus maxlength="20">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.customerName.$dirty || (form.customerName.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.customerName.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>车辆位置：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div yb-form-clear name="address" ng-model="detailInfo.address" select-obj="selectAddress()"
                             clear-form="clearAddress()" tips-name="车辆位置" input-disabled="detailInfo.hasVehicleIotGps==1" required></div>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.address.$dirty || (form.address.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.address.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">所在省份：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.province" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">所在城市：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.city" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">顾客单位：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.tenantName">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">产品型号：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productModel" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">产品组：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productGroup" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="!(detailInfo.serviceType==1||detailInfo.serviceType==5||detailInfo.serviceType==7)">*</i>购车日期：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer" name="purchaseDate"
                                ng-model="detailInfo.purchaseDate"
                                datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-click="showPurchaseDatePicker=!showPurchaseDatePicker"
                                is-open="showPurchaseDatePicker" close-text="关闭" readonly
                                ng-disabled="detailInfo.serviceType!=2"
                                ng-required="!(detailInfo.serviceType==1||detailInfo.serviceType==5||detailInfo.serviceType==7)">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.purchaseDate.$dirty || (form.purchaseDate.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.purchaseDate.$error.required">
                            <i class="yb-icon ico-times-circular"></i>
                            <span ng-if="detailInfo.serviceType==2">必填项，请填写</span>
                            <span ng-if="detailInfo.serviceType!=2">当前车辆没有购车日期，请先创建交机服务！</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="detailInfo.serviceType==2">*</i>整机三包期限/月：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.guaranteePeriod" disabled ng-required="detailInfo.serviceType==2" name="guaranteePeriod">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.guaranteePeriod.$dirty || (form.guaranteePeriod.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.guaranteePeriod.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请联系特机人员维护</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="detailInfo.serviceType==2">*</i>整机三包小时数：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.guaranteeHours" disabled ng-required="detailInfo.serviceType==2" name="guaranteeHours">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.guaranteeHours.$dirty || (form.guaranteeHours.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.guaranteeHours.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请联系特机人员维护</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">出保日期：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.warrantyReleaseDate"
                                datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-click="showWarrantyReleaseDatePicker=!showWarrantyReleaseDatePicker"
                                is-open="showWarrantyReleaseDatePicker" close-text="关闭" readonly disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">质保状态：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ (detailInfo.warrantyStatus|WarrantyStatus) || '-' }}
                    </label>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">产品属性：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productShuxing" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">GPS小时数(h)：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.gpsHours" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>工况：</label>
                    <div class="col-xs-5 wrapper-none">
                        <!-- <input type="text" name="workCondition" class="form-control" ng-model="detailInfo.workCondition" required> -->
                        <div bj-select name="workCondition" required source="gongkuangList" source-label-key="name"
                            ng-model="selectedData.gongkuang" bind-key="code"></div>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.workCondition.$dirty || (form.workCondition.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.workCondition.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">所属代理商：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.belongAgentName" disabled>
                    </div>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">当前代理商：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.currentAgentName" disabled>
                    </div>
                </div>



                <div class="form-group" ng-if="!!detailInfo.lifetimeWarranty">
                    <label class="col-xs-2 control-label">是否终身质保：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">是</label>
                </div>

                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">行驶里程：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.drivenDistance" 
                            yb-number-input disable-decimal="false" decimal-places="2" maxlength="20">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">行驶里程单位：</label>
                    <div class="col-xs-5 wrapper-none">
                        <select class="form-control" name="drivenDistanceUnit"
                            ng-model="detailInfo.drivenDistanceUnit" ng-required="!!detailInfo.drivenDistance">
                            <option value="">请选择</option>
                            <option value="公里">公里</option>
                            <option value="小时">小时</option>
                            <option value="天">天</option>
                        </select>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.drivenDistanceUnit.$dirty || (form.drivenDistanceUnit.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.drivenDistanceUnit.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>请选择行驶里程单位</span>
                        </div>
                    </div>
                </div>

                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label"><i>*</i>整车类型：</label>
                    <div class="col-xs-5 wrapper-none">
                        <select class="form-control" ng-model="carType.data" name="vehicleType" required
                            ng-options="item.name group by item.parentName for item in carTypes">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.vehicleType.$dirty || (form.vehicleType.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.vehicleType.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>



                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label"><i>*</i>营销中心：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" readonly required ng-click="beforeSelMarketingCenter()"
                            name="marketingCenterName" ng-model="detailInfo.marketingCenterName">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.marketingCenterName.$dirty || (form.marketingCenterName.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.marketingCenterName.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">一级服务站：</label>
                    <div class="col-xs-5 wrapper-none" ng-if="isYingXiao">
                        <div bj-select source="level1ServiceStations" source-label-key="companyName"
                            ng-model="detailInfo.level1ServiceStationId" bind-key="platOrgId"
                            on-option-changed="handleLevel1ServiceStationChange()" on-click="isHasVehicleTypeAndAddress()"></div>
                    </div>
                    <label class="col-xs-5 control-label p-l-n text-left" ng-if="isFWZ">
                        {{ detailInfo.level1ServiceStation }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">二级服务站：</label>
                    <div class="col-xs-5 wrapper-none" ng-if="isYingXiao||isFWZ1">
                        <div bj-select source="level2ServiceStations" source-label-key="companyName"
                            ng-model="detailInfo.level2ServiceStationId" bind-key="platOrgId" on-click="isHasFWZ1()"></div>
                    </div>
                    <label class="col-xs-5 control-label p-l-n text-left" ng-if="isFWZ2">
                        {{ detailInfo.level2ServiceStation }}
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label">车牌号：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.licensePlateNumber" maxlength="7">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">品牌：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.carBrand" maxlength="20">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">车辆用途：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ carType.data.parentName || '-' }}
                    </label>
                </div>

                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label"><i>*</i><span>是否预约</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left">
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="detailInfo.appointment" value="0" yb-radio-name="否" name="appointment" required>
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="detailInfo.appointment" value="1" yb-radio-name="是" name="appointment" required>
                    </label>
                    <div class="col-xs-4 msg-block" ng-show="form.appointment.$dirty || (form.appointment.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.appointment.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group" ng-if="detailInfo.appointment==1">
                    <label class="col-xs-2 control-label"><i>*</i>预计到达服务站时间：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.appointmentDate" name="appointmentDate" required
                                datepicker-popup="{{'yyyy-MM-dd HH:mm:ss'}}"
                                ng-click="showAppointmentDatePicker=!showAppointmentDatePicker"
                                is-open="showAppointmentDatePicker" close-text="关闭" readonly>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.appointmentDate.$dirty || (form.appointmentDate.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.appointmentDate.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>故障描述：</label>
                    <div class="col-xs-5 wrapper-none">
                        <textarea class="form-control" ng-model="detailInfo.describe" required name="describe"></textarea>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="form.describe.$dirty || (form.describe.$invalid && submitted)">
                        <div class="error-msg" ng-if="form.describe.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group m-b-lg" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">照片：</label>
                    <div class="col-xs-10">
                        <yb-upload url-type="minio" url-root="mt" mn-dir="teji-weixiu/" ng-model="photos" max-img-amount="12" max-img-size="5"></yb-upload>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid)">保存</button>
                        <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                    </div>
                </div>
            </form>
        </div>
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="formEdit" class="form-horizontal wrapper-md clearfix" novalidate>
                <div class="form-group">
                    <label class="col-xs-2 control-label">单号：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.code || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span>服务单类型</span>：</label>
                    <label class="col-xs-5 wrapper-none">
                        <select class="form-control" ng-model="detailInfo.serviceType" name="serviceType" required
                            ng-options="item.serviceType as item.serviceTypeDesc for item in serviceTypeList">
                            <option value="">请选择</option>
                        </select>
                    </label>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.serviceType.$dirty || (formEdit.serviceType.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.serviceType.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i><span>整车编码</span>：</label>
                    <div class="col-xs-5 wrapper-none">
                        <div yb-form-clear name="engineNo" ng-model="detailInfo.engineNo" title="detailInfo.engineNo" hide-clear="true"
                            select-obj="selectEngineNo()" tips-name="整车编码" required></div>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.engineNo.$dirty || (formEdit.engineNo.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.engineNo.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">联系方式：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.contact || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">联系人：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.customerName || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">车辆位置：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.address || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">所在省份：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.province" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">所在城市：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.city" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">顾客单位：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.tenantName">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">产品型号：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productModel" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">产品组：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productGroup" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="!(detailInfo.serviceType==1||detailInfo.serviceType==5||detailInfo.serviceType==7)">*</i>购车日期：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer" name="purchaseDate"
                                ng-model="detailInfo.purchaseDate"
                                datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-click="showPurchaseDatePicker=!showPurchaseDatePicker"
                                is-open="showPurchaseDatePicker" close-text="关闭" readonly
                                ng-disabled="detailInfo.serviceType!=2"
                                ng-required="!(detailInfo.serviceType==1||detailInfo.serviceType==5||detailInfo.serviceType==7)">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.purchaseDate.$dirty || (formEdit.purchaseDate.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.purchaseDate.$error.required">
                            <i class="yb-icon ico-times-circular"></i>
                            <span ng-if="detailInfo.serviceType==2">必填项，请填写</span>
                            <span ng-if="detailInfo.serviceType!=2">当前车辆没有购车日期，请先创建交机服务！</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="detailInfo.serviceType==2">*</i>整机三包期限/月：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.guaranteePeriod" disabled ng-required="detailInfo.serviceType==2" name="guaranteePeriod">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.guaranteePeriod.$dirty || (formEdit.guaranteePeriod.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.guaranteePeriod.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请联系特机人员维护</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i ng-if="detailInfo.serviceType==2">*</i>整机三包小时数：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.guaranteeHours" disabled ng-required="detailInfo.serviceType==2" name="guaranteeHours">
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.guaranteeHours.$dirty || (formEdit.guaranteeHours.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.guaranteeHours.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请联系特机人员维护</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">出保日期：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.warrantyReleaseDate"
                                datepicker-popup="{{'yyyy-MM-dd'}}"
                                ng-click="showWarrantyReleaseDatePicker=!showWarrantyReleaseDatePicker"
                                is-open="showWarrantyReleaseDatePicker" close-text="关闭" readonly disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">质保状态：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ (detailInfo.warrantyStatus|WarrantyStatus) || '-' }}
                    </label>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">产品属性：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.productShuxing" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">GPS小时数(h)：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.gpsHours" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>工况：</label>
                    <div class="col-xs-5 wrapper-none">
                        <!-- <input type="text" name="workCondition" class="form-control" ng-model="detailInfo.workCondition" required> -->
                        <div bj-select name="workCondition" required source="gongkuangList" source-label-key="name"
                            ng-model="selectedData.gongkuang" bind-key="code"></div>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.workCondition.$dirty || (formEdit.workCondition.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.workCondition.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group" ng-if="detailInfo.zhudongServiceCount">
                    <label class="col-xs-2 control-label">保养次数：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.zhudongServiceCount" disabled>
                    </div>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">所属代理商：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.belongAgentName" disabled>
                    </div>
                </div>
                <div class="form-group" ng-if="isYingXiao">
                    <label class="col-xs-2 control-label">当前代理商：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.currentAgentName" disabled>
                    </div>
                </div>



                <div class="form-group" ng-if="!!detailInfo.lifetimeWarranty">
                    <label class="col-xs-2 control-label">是否终身质保：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">是</label>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">行驶里程：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.drivenDistance"
                            yb-number-input disable-decimal="false" decimal-places="2" maxlength="20">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">行驶里程单位：</label>
                    <div class="col-xs-5 wrapper-none">
                        <select class="form-control" name="drivenDistanceUnit"
                            ng-model="detailInfo.drivenDistanceUnit" ng-required="!!detailInfo.drivenDistance">
                            <option value="">请选择</option>
                            <option value="公里">公里</option>
                            <option value="小时">小时</option>
                            <option value="天">天</option>
                        </select>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.drivenDistanceUnit.$dirty || (formEdit.drivenDistanceUnit.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.drivenDistanceUnit.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>请选择行驶里程单位</span>
                        </div>
                    </div>
                </div>



                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">营销中心：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.marketingCenterName || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">一级服务站：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.level1ServiceStation || '-' }}
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">二级服务站：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ detailInfo.level2ServiceStation || '-' }}
                    </label>
                </div>

                <div class="form-group">
                    <label class="col-xs-2 control-label">车牌号：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.licensePlateNumber" maxlength="7">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">品牌：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.carBrand" maxlength="20">
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">整车类型：</label>
                    <div class="col-xs-5 wrapper-none">
                        <select class="form-control" ng-model="carType.data" name="vehicleType"
                            ng-options="item.name group by item.parentName for item in carTypes">
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">车辆用途：</label>
                    <label class="col-xs-5 control-label p-l-n text-left spill-dots">
                        {{ carType.data.parentName || '-' }}
                    </label>
                </div>

                <div class="form-group" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label"><i>*</i><span>是否预约</span>：</label>
                    <label class="col-xs-5 control-label p-l-n text-left">
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="detailInfo.appointment" value="0" yb-radio-name="否" name="appointment" required>
                        <input type="radio" class="m-r-md pull-left" yb-radio ng-model="detailInfo.appointment" value="1" yb-radio-name="是" name="appointment" required>
                    </label>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.appointment.$dirty || (formEdit.appointment.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.appointment.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group" ng-if="detailInfo.appointment==1">
                    <label class="col-xs-2 control-label"><i>*</i>预计到达服务站时间：</label>
                    <div class="col-xs-5 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.appointmentDate" name="appointmentDate" required
                                datepicker-popup="{{'yyyy-MM-dd HH:mm:ss'}}"
                                ng-click="showAppointmentDatePicker=!showAppointmentDatePicker"
                                is-open="showAppointmentDatePicker" close-text="关闭" readonly>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.appointmentDate.$dirty || (formEdit.appointmentDate.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.appointmentDate.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label"><i>*</i>故障描述：</label>
                    <div class="col-xs-5 wrapper-none">
                        <textarea class="form-control" ng-model="detailInfo.describe" required name="describe"></textarea>
                    </div>
                    <div class="col-xs-4 msg-block" ng-show="formEdit.describe.$dirty || (formEdit.describe.$invalid && submitted)">
                        <div class="error-msg" ng-if="formEdit.describe.$error.required">
                            <i class="yb-icon ico-times-circular"></i><span>必填项，请填写</span>
                        </div>
                    </div>
                </div>
                <div class="form-group m-b-lg" ng-if="tejiFuture">
                    <label class="col-xs-2 control-label">照片：</label>
                    <div class="col-xs-10">
                        <yb-upload url-type="minio" url-root="mt" mn-dir="teji-weixiu/" ng-model="photos" max-img-amount="12" max-img-size="5"></yb-upload>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-xs-offset-2">
                        <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(formEdit.$valid)">保存</button>
                        <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                    </div>
                </div>
            </form>
        </div>
        <div tab heading="操作记录" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed"></div>
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{tbConf4Log.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf4Log.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf4Log.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y"></div>
                    <div class="td-scroll" ng-show="itemLogs.length > 0">
                        <table class="table-fixed border-none" width="{{tbConf4Log.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in itemLogs track by $index">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf4Log.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <span title="{{item[itemCol.dataField]}}">{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="itemLogs.length === 0">暂时没有数据</div>
                </div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.code || '-'}}">
                        {{orderObj.code || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">来源：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.channel|Channel}}">
                        {{orderObj.channel|Channel}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">创建人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.createdByName || '-'}}">
                        {{orderObj.createdByName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">服务类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.serviceType|ServiceType}}">
                    {{orderObj.serviceType|ServiceType}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.customerName || '-'}}">
                    {{orderObj.customerName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系方式：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.contact || '-'}}">
                    {{orderObj.contact || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车辆位置：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.address || '-'}}">
                        {{orderObj.address || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">整车编码：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.engineNo || '-'}}">
                        {{orderObj.engineNo || "-"}}
                        <span style="margin-left: 10px;color: #448AFD;cursor: pointer;" ng-click="viewGss(orderObj.engineNo)">一机一册</span>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">购车日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.purchaseDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(orderObj.purchaseDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">整机三包期限：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.guaranteePeriod || '-'}}">
                        {{orderObj.guaranteePeriod || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">整机三包小时数：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.guaranteeHours || '-'}}">
                        {{orderObj.guaranteeHours || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出保日期：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.warrantyReleaseDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(orderObj.warrantyReleaseDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">质保状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.warrantyStatus|WarrantyStatus) || '-'}}">
                        {{(orderObj.warrantyStatus|WarrantyStatus) || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">计时表小时数：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.workHours || '-'}}">
                        {{orderObj.workHours || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">GPS小时数：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.gpsHours || '-'}}">
                        {{orderObj.gpsHours || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!!orderObj.lifetimeWarranty">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否终身质保：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">是</div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车牌号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.licensePlateNumber || '-'}}">
                        {{orderObj.licensePlateNumber || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                    <label class="col-xs-4 m-b-n text-right max-w-100">品牌：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.carBrand || '-'}}">
                        {{orderObj.carBrand || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                    <label class="col-xs-4 m-b-n text-right max-w-100">整车类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.vehicleTypeDesc || '-'}}">
                    {{orderObj.vehicleTypeDesc || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                    <label class="col-xs-4 m-b-n text-right max-w-100">车辆用途：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.vehicleUserDesc || '-'}}">
                        {{orderObj.vehicleUserDesc || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否预约：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.appointment|TrueOrFalse}}">
                        {{orderObj.appointment|TrueOrFalse}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="orderObj.appointment==1">
                    <label class="col-xs-4 m-b-n text-right max-w-100">预约时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.appointmentDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.appointmentDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">故障描述：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.describe || '-'}}">
                        {{orderObj.describe || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">工况：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.workCondition || '-'}}">
                        {{orderObj.workCondition || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">产品型号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.productModel || '-'}}">
                        {{orderObj.productModel || '-'}}
                    </div>
                </div>
                <!-- <div class="form-group col-xs-12 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">故障描述：</label>
                    <div class="wrapper-none spill-dots" style="width:calc(100% - 100px);" title="{{orderObj.describe || '-'}}">
                        {{orderObj.describe || "-"}}
                    </div>
                </div> -->
                <div class="form-group col-xs-12 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">照片：</label>
                    <div class="col-xs-8 wrapper-none">
                        <yb-upload url-type="minio" url-root="mt" mn-dir="teji-weixiu/" ng-model="orderObj.photoListShow" only-view="true" ng-if="orderObj.photoListShow.length>0"></yb-upload>
                        <span ng-if="orderObj.photoListShow.length==0">-</span>
                    </div>
                </div>
            </div>

            <div class="panel-bar clearfix" style="height:unset;"></div>

            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                    <label class="col-xs-4 m-b-n text-right max-w-100">营销中心：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.marketingCenterName || '-'}}">
                        {{orderObj.marketingCenterName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">一级服务站：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.level1ServiceStation || '-'}}">
                        {{orderObj.level1ServiceStation || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">二级服务站：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.level2ServiceStation || '-'}}">
                    {{orderObj.level2ServiceStation || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">维修技师：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.technicianName || '-'}}">
                        {{orderObj.technicianName || '-'}}
                    </div>
                </div>
            </div>

            <div class="panel-bar clearfix" style="height:unset;"></div>

            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">接单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.orderTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.orderVO.orderTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">接单地点：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.orderAddress || '-'}}">
                        {{orderObj.orderVO.orderAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">到场打卡时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.orderFinishClockInTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                    {{orderObj.orderVO.orderFinishClockInTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">到场打卡地点：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.orderFinishClockInAddress || '-'}}">
                        {{orderObj.orderVO.orderFinishClockInAddress || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.remark || '-'}}">
                        {{orderObj.orderVO.remark || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">完工时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.orderFinishTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{orderObj.orderVO.orderFinishTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">故障原因：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.causeOfIssue || '-'}}">
                        {{orderObj.orderVO.causeOfIssue || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">排除故障措施：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderVO.maintenanceDesc || '-'}}">
                        {{orderObj.orderVO.maintenanceDesc || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-12 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">整车照片：</label>
                    <div class="col-xs-8 wrapper-none">
                        <yb-upload url-type="minio" url-root="mt" mn-dir="teji-weixiu/" ng-model="orderObj.orderVO.vehiclePhotosListShow" only-view="true" ng-if="orderObj.orderVO.vehiclePhotosListShow.length>0"></yb-upload>
                        <span ng-if="orderObj.orderVO.vehiclePhotosListShow.length==0">-</span>
                    </div>
                </div>
            </div>

            <div class="panel-bar clearfix" style="height:unset;"></div>

            <div>
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="col-xs-12" style="padding:0;">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100">单据审核状态：</label>
                            <div class="col-xs-8 wrapper-none spill-dots">
                                {{orderObj.completeAuditFlowStatus|ProgressStatus:'fwdAudit2'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100">审核时间：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.completeAuditFinishTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                                {{orderObj.completeAuditFinishTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right max-w-100">审核备注：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.managerRemark || ''}}">
                                {{orderObj.managerRemark || ''}}
                            </div>
                        </div>
                    </div>
                </div>
    
                <div class="panel-bar clearfix" style="height:unset;"></div>
            </div>

            <div class="m-t-sm form-up-tb clearfix">
                <!-- 详情 -->
                <div ng-if="tabFlag.type==0">
                    <div class="col-xs-12" style="padding:0;">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">接单-车辆里程：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.orderMileage|FormatDis}}">
                                {{orderObj.orderVO.orderMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.orderVO.orderMileage"
                                    ng-click="showRoute({ lng: orderObj.orderVO.orderLng, lat: orderObj.orderVO.orderLat }, { lng: orderObj.lng, lat: orderObj.lat })">查看路线</span>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">接单-打卡里程：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.clockInMileage|FormatDis}}">
                                {{orderObj.orderVO.clockInMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.orderVO.clockInMileage"
                                    ng-click="showRoute({ lng: orderObj.orderVO.orderLng, lat: orderObj.orderVO.orderLat }, { lng: orderObj.orderVO.orderFinishClockInLng, lat: orderObj.orderVO.orderFinishClockInLat })">查看路线</span>
                            </div>
                        </div>
                        
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">服务站-车辆里程：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.expectsMileage|FormatDis}}">
                                {{orderObj.expectsMileage|FormatDis}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">服务站-打卡里程：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.actualMileage|FormatDis}}">
                                {{orderObj.actualMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.actualMileage"
                                    ng-click="showRoute({ lng: orderObj.stationLng, lat: orderObj.stationLat }, { lng: orderObj.orderVO.orderFinishClockInLng, lat: orderObj.orderVO.orderFinishClockInLat })">查看路线</span>
                            </div>
                        </div>

                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">维护实际里程：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.confirmMileage|FormatDis}}">
                                {{orderObj.confirmMileage|FormatDis}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">维护里程备注：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.confirmMileageDesc||'-'}}">
                                {{orderObj.confirmMileageDesc||'-'}}
                            </div>
                        </div>

                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">服务费用(元)：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.totalServiceFee||'-'}}">
                                {{orderObj.totalServiceFee||'-'}}
                            </div>
                        </div>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                        <label class="col-xs-4 m-b-n text-right">是否外出：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.goOutStatus|TrueOrFalse}}">
                            {{orderObj.goOutStatus|TrueOrFalse}}
                        </div>
                    </div>
                    <div ng-if="orderObj.goOutStatus==1 && tejiFuture">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">交通工具：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.transportationKey|Vehicle}}">
                                {{orderObj.transportationKey|Vehicle}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">外出人数：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.goOutPeople || '-'}}">
                                {{orderObj.goOutPeople || '-'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">外出天数：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.goOutDays || '-'}}">
                                {{orderObj.goOutDays || '-'}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">出发地点：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.departureLocation || '-'}}">
                                {{orderObj.departureLocation || '-'}}
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 完工补录 -->
                <div ng-if="tabFlag.type==1">
                    <div class="col-xs-12" style="padding:0;">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">接单-车辆里程：</label>
                            <div class="col-xs-8 control-label spill-dots" title="{{orderObj.orderMileage|FormatDis}}">
                                {{orderObj.orderVO.orderMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.orderVO.orderMileage"
                                    ng-click="showRoute({ lng: orderObj.orderVO.orderLng, lat: orderObj.orderVO.orderLat }, { lng: orderObj.lng, lat: orderObj.lat })">查看路线</span>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">接单-打卡里程：</label>
                            <div class="col-xs-8 control-label spill-dots" title="{{orderObj.clockInMileage|FormatDis}}">
                                {{orderObj.orderVO.clockInMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.orderVO.clockInMileage"
                                    ng-click="showRoute({ lng: orderObj.orderVO.orderLng, lat: orderObj.orderVO.orderLat }, { lng: orderObj.orderVO.orderFinishClockInLng, lat: orderObj.orderVO.orderFinishClockInLat })">查看路线</span>
                            </div>
                        </div>

                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">服务站-车辆里程：</label>
                            <div class="col-xs-8 control-label spill-dots" title="{{orderObj.expectsMileage|FormatDis}}">
                                {{orderObj.expectsMileage|FormatDis}}
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">服务站-打卡里程：</label>
                            <div class="col-xs-8 control-label spill-dots" title="{{orderObj.actualMileage|FormatDis}}">
                                {{orderObj.actualMileage|FormatDis}}
                                <span style="margin-left: 10px;color: #448AFD;cursor: pointer;"
                                    ng-if="orderObj.actualMileage"
                                    ng-click="showRoute({ lng: orderObj.stationLng, lat: orderObj.stationLat }, { lng: orderObj.orderVO.orderFinishClockInLng, lat: orderObj.orderVO.orderFinishClockInLat })">查看路线</span>
                            </div>
                        </div>

                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">维护实际里程：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" style="width: 85%;display: inline-block;" maxlength="8"
                                    ng-model="orderObj.confirmMileageShow" yb-number-input disable-decimal="false" decimal-places="2">公里
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">维护里程备注：</label>
                            <div class="col-xs-8 wrapper-none">
                                <textarea class="form-control" style="height:auto;" maxlength="140" ng-model="orderObj.confirmMileageDesc"></textarea>
                            </div>
                        </div>

                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 m-b-n text-right">服务费用(元)：</label>
                            <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.totalServiceFee||'-'}}">
                                {{orderObj.totalServiceFee||'-'}}
                            </div>
                        </div>
                    </div>

                    <div class="form-group col-xs-3 m-b-sm" ng-if="tejiFuture">
                        <label class="col-xs-4 control-label text-right">是否外出：</label>
                        <div class="col-xs-8 control-label spill-dots" title="{{orderObj.goOutStatus|TrueOrFalse}}">
                            {{orderObj.goOutStatus|TrueOrFalse}}
                        </div>
                    </div>
                    <div ng-if="orderObj.goOutStatus==1 && tejiFuture">
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">交通工具：</label>
                            <div class="col-xs-8 wrapper-none">
                                <select class="form-control" ng-model="orderObj.transportationKey">
                                    <option value="">请选择</option>
                                    <option value="1">自驾</option>
                                    <option value="2">乘车</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">外出人数：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="orderObj.goOutPeople" yb-number-input>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">外出天数：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="orderObj.goOutDays" yb-number-input>
                            </div>
                        </div>
                        <div class="form-group col-xs-3 m-b-sm">
                            <label class="col-xs-4 control-label text-right">出发地点：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div yb-form-clear ng-model="orderObj.departureLocation" select-obj="selectDepartureLocation()"
                                    clear-form="clearDepartureLocation()" tips-name="出发地点"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div tabset type="sub-tab" class="m-t-sm">
                <div tab heading="更换零件" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{top:getHeight(orderObj.photoListShow.length>0, orderObj.orderVO.vehiclePhotosListShow.length>0)+'px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th>旧件零件号</th>
                                            <th>旧件零件中文名</th>
                                            <th>新件零件号</th>
                                            <th>新件零件中文名</th>
                                            <th>备件来源</th>
                                            <th>是否返厂</th>
                                            <th>更换数量</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in orderObj.materialsVOList track by $index">
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}</td>
                                            <td class="spill-dots" title="{{item.materialsName}}">{{item.materialsName}}</td>
                                            <td class="spill-dots" title="{{item.materialsNoNew}}">{{item.materialsNoNew}}</td>
                                            <td class="spill-dots" title="{{item.materialsNameNew}}">{{item.materialsNameNew}}</td>
                                            <td class="spill-dots" title="{{item.partsSource}}">{{item.partsSource}}</td>
                                            <td class="spill-dots" title="{{item.needReturnFactory|TrueOrFalse}}">{{item.needReturnFactory|TrueOrFalse}}</td>
                                            <td class="spill-dots" title="{{item.amount}}">{{item.amount}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="维修项目" active="subTabFlag[1]">
                    <div class="main-area d-b-60" ng-style="{top:getHeight(orderObj.photoListShow.length>0, orderObj.orderVO.vehiclePhotosListShow.length>0)+'px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th>维修项目</th>
                                            <th>维修数量</th>
                                            <th>是否更换配件</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in orderObj.weixiuItemsVOList track by $index">
                                            <td class="spill-dots" title="{{item.weixiuItemName}}">{{item.weixiuItemName}}</td>
                                            <td class="spill-dots" title="{{item.weixiuNumber}}">{{item.weixiuNumber}}</td>
                                            <td class="spill-dots" title="{{item.changeMaterial|TrueOrFalse}}">{{item.changeMaterial|TrueOrFalse}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="bottom-area btn-bar text-center border-t clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleUpdateAfterFinish()" ng-if="tabFlag.type==1">保存</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)" ng-if="!pageDisabled">取消</button>
            </div>
        </div>
    </div>
</div>